
<template>
    <div class="grid-card user-model">
        <div class="grid-card-header">
            <el-row>
                <el-col :span="12">
                    <span>{{title}}</span>
                </el-col>
                <el-col :span="12" style="text-align: right">
                    <el-tabs v-model="activeName" @tab-click="handleClick">
                        <el-tab-pane label="本周" name="first"></el-tab-pane>
                        <el-tab-pane label="本月" name="second"></el-tab-pane>
                        <el-tab-pane label="上月" name="third"></el-tab-pane>
                    </el-tabs>
                </el-col>
            </el-row>

        </div>
        <div class="grid-card-body">
            <el-row>
                <el-col :span="6">
                    <div class="total-price-name">总金额</div>
                    <div class="total-price-num">¥120万</div>
                </el-col>
                <el-col :span="6">
                    <div class="order-name">有效订单</div>
                    <div class="order-num">100单</div>
                </el-col>
                <el-col :span="6">
                    <div class="order-name">有效订单</div>
                    <div class="order-num">100单</div>
                </el-col>
                <el-col :span="6">
                    <div class="order-name">有效订单</div>
                    <div class="order-num">100单</div>
                </el-col>
            </el-row>
        </div>
    </div>
</template>

<script>
    import base from '../base.js';
    export default {
        extends: base,
        name: "user-model",
        props: {},
        data() {
            return {
                activeName: 'first'
            }
        },
        methods: {
            handleClick(tab, event) {
                console.log(tab, event);
            }
        }
    }
</script>
<style lang="less">
    .user-model{
        .el-tabs__nav{
            float: right !important;
        }
    }

</style>
<style scoped lang="less">
    .grid-card {
        width: 100%;
        padding-bottom: 30px;
        min-width: 300px;
        .grid-card-header {
            height: 43px;
            line-height: 44px;
            padding: 0 30px;
            border-bottom: 1px solid #f6f6f6;
            font-size: 16px;
            color: #000;
        }
        .grid-card-body{
            .total-price-name, .order-name{
                font-size: 14px;
                padding: 20px 0 16px 0;
                padding-left: 20%;
                color: rgba(0,0,0,0.45);
            }
            .total-price-num{
                font-size: 30px;
                padding-left: 20%;
                color: #FF8D00;
                /*line-height: 32px;*/
            }
            .order-num{
                font-size: 30px;
                padding-left: 20%;
                color: rgba(0,0,0,0.85);
                /*line-height: 32px;*/
            }
        }
    }
</style>
